import java.util.Scanner;

public class Java003 {
    public static void main(String[] args) {
        String s = new String();
        Scanner sc = new Scanner(System.in);
        s = sc.nextLine();
        fun(s);
    }
    public static void fun(String s){
        String string="";
        for(int i=0;i<s.length();i++){
            string=s.charAt(i)+string;
        }
        if(s.equals(string)){
            System.out.println("true");
        }else{
            System.out.println("false");
            System.out.println(string);
        }
    }
}
//随机输入字符串 判断是否是回文